
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>files · 合同管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="init.html" />
    
    
    <link rel="prev" href="faildoc.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../Framework.html">
            
                <a href="../../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../api.html">
            
                <a href="../api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../assets.html">
            
                <a href="../assets.html">
            
                    
                    assets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../components.html">
            
                <a href="../components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../filters.html">
            
                <a href="../filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../mixins.html">
            
                <a href="../mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../router.html">
            
                <a href="../router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../store.html">
            
                <a href="../store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../styles.html">
            
                <a href="../styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../utils.html">
            
                <a href="../utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="./">
            
                <a href="./">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="activate.html">
            
                <a href="activate.html">
            
                    
                    activate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="approvemanage.html">
            
                <a href="approvemanage.html">
            
                    
                    approvemanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="sealmanage.html">
            
                <a href="sealmanage.html">
            
                    
                    sealmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.4" data-path="deptmanage.html">
            
                <a href="deptmanage.html">
            
                    
                    deptmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.5" data-path="faildoc.html">
            
                <a href="faildoc.html">
            
                    
                    faildoc
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.10.6" data-path="files.html">
            
                <a href="files.html">
            
                    
                    files
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.7" data-path="init.html">
            
                <a href="init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.8" data-path="layout.html">
            
                <a href="layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.9" data-path="login.html">
            
                <a href="login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.10" data-path="myfiles.html">
            
                <a href="myfiles.html">
            
                    
                    myfiles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.11" data-path="passmail.html">
            
                <a href="passmail.html">
            
                    
                    passmail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.12" data-path="redirect.html">
            
                <a href="redirect.html">
            
                    
                    redirect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.13" data-path="sysmanage.html">
            
                <a href="sysmanage.html">
            
                    
                    sysmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.14" data-path="template.html">
            
                <a href="template.html">
            
                    
                    template
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.15" data-path="updateinfo.html">
            
                <a href="updateinfo.html">
            
                    
                    updateinfo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.16" data-path="usermanage.html">
            
                <a href="usermanage.html">
            
                    
                    usermanage
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../config.html">
            
                <a href="../config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../newPage.html">
            
                <a href="../newPage.html">
            
                    
                    新建页面
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >files</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x5168;&#x90E8;&#x6587;&#x6863;&#x3001;&#x66F4;&#x65E9;&#x6587;&#x6863;&#x3001;&#x4E0A;&#x4E0B;&#x671F;&#x5EA6;&#x6587;&#x6863;">&#x5168;&#x90E8;&#x6587;&#x6863;&#x3001;&#x66F4;&#x65E9;&#x6587;&#x6863;&#x3001;&#x4E0A;&#x4E0B;&#x671F;&#x5EA6;&#x6587;&#x6863;</h3>
<p><img src="../../images/files.jpg" alt=""></p>
<h5 id="indexvue">index.vue</h5>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> doc<span class="token punctuation">,</span> operator<span class="token punctuation">,</span> file <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> readTemp <span class="token keyword">from</span> <span class="token string">&apos;./readTemp&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x9884;&#x89C8; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> searchTemp <span class="token keyword">from</span> <span class="token string">&apos;./searchTemp&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x641C;&#x7D22;&#x680F; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fileI18nHandler<span class="token punctuation">,</span> sortChange <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> DomArgsEnum<span class="token punctuation">,</span> RouterPathEnum<span class="token punctuation">,</span> RouterToEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> 
    DocumentState <span class="token keyword">as</span> DocStateEnum<span class="token punctuation">,</span>
    UserRole <span class="token keyword">as</span> RoleEnum<span class="token punctuation">,</span>
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span>
    ToolButton <span class="token keyword">as</span> toolBtn<span class="token punctuation">,</span>
    Pagination <span class="token keyword">as</span> paginationTemp<span class="token punctuation">,</span>
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x5DE5;&#x5177;&#x680F;&#x3001;&#x5206;&#x9875; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fmtSearchTime <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/filters&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;</span>
<span class="token keyword">import</span> printList <span class="token keyword">from</span> <span class="token string">&apos;@/views/myfiles/printList&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x6253;&#x5370;&#x9884;&#x89C8;&#x9644;&#x4EF6;&#x5217;&#x8868; &#x7EC4;&#x4EF6;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
        readTemp<span class="token punctuation">,</span>
        searchTemp<span class="token punctuation">,</span>
        paginationTemp<span class="token punctuation">,</span>
        toolBtn<span class="token punctuation">,</span>
        printList
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    filters<span class="token operator">:</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            DomArgsEnum<span class="token punctuation">,</span> <span class="token comment">/* toolBar&#x5F62;&#x53C2;&#x679A;&#x4E3E; */</span>
            RouterToEnum<span class="token punctuation">,</span> <span class="token comment">/* &#x8DEF;&#x5F84; */</span>
            loading<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// loading</span>
            listQuery<span class="token operator">:</span> <span class="token punctuation">{</span> page<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> count<span class="token operator">:</span> <span class="token number">10</span><span class="token punctuation">,</span> category<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> type<span class="token operator">:</span> <span class="token keyword">null</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x67E5;&#x8BE2;&#x53C2;&#x6570;</span>
            tableData<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x683C; &#x6570;&#x636E;</span>
            page<span class="token operator">:</span> <span class="token punctuation">{</span> current<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> total<span class="token operator">:</span> <span class="token number">0</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5206;&#x9875;&#x6570;&#x636E;</span>
            btnEnable<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x5B89;&#x88C5;&#x72B6;&#x6001;</span>
            <span class="token comment">/* &#x5BFC;&#x51FA;&#x6309;&#x94AE;&#x5224;&#x65AD; */</span>
            xlsxEnable<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
            xlsxShow<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
            docxEnable<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
            docxShow<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
            <span class="token comment">/* &#x5BFC;&#x51FA;&#x6309;&#x94AE;&#x5224;&#x65AD; */</span>
            exportIds<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x62A5;&#x8868;&#x5BFC;&#x51FA; &#x7684;&#x884C;&#x9009;&#x62E9; id &#x5217;&#x8868;</span>
            archived<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426;&#x5B58;&#x6863;&#x5B8C;&#x6210;</span>
            isEdit<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//&#x662F;&#x5426;&#x53EF;&#x7F16;&#x8F91;</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5355;&#x884C;&#x9009;&#x4E2D;&#x6570;&#x636E;</span>
            footer<span class="token operator">:</span> <span class="token punctuation">{</span> totalCount<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> totalAmount<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> details<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x9875;&#x811A; &#x6570;&#x636E;</span>
            multipleSelection<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x884C;&#x9009;&#x4E2D;&#x5217;&#x8868;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>fileI18nHandler<span class="token punctuation">,</span> sortChange<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span>
            <span class="token string">&apos;cacheMenu&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;isAdmin&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;isTax&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;queryParams&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;user&apos;</span>
        <span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token function">isDel</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x7BA1;&#x7406;&#x5458; &#x548C; &#x5B58;&#x6863;&#x62C5;&#x5F53; &#x5177;&#x6709; &#x5220;&#x9664;&#x6743;&#x9650;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>isAdmin <span class="token operator">||</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">.</span>roles<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>RoleEnum<span class="token punctuation">.</span>archiver<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">dispatchClick</span><span class="token punctuation">(</span><span class="token parameter">arg</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment">// &#x70B9;&#x51FB;&#x4E8B;&#x4EF6; &#x5206;&#x53D1;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> del<span class="token punctuation">,</span> reset<span class="token punctuation">,</span> print <span class="token punctuation">}</span> <span class="token operator">=</span> DomArgsEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> add<span class="token punctuation">,</span> copy<span class="token punctuation">,</span> edit<span class="token punctuation">,</span> lend <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
            <span class="token keyword">switch</span> <span class="token punctuation">(</span>arg<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">case</span> add<span class="token operator">:</span>
                <span class="token keyword">case</span> copy<span class="token operator">:</span>
                <span class="token keyword">case</span> edit<span class="token operator">:</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>addTemp<span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> arg <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> lend<span class="token operator">:</span> <span class="token comment">/* &#x7EB8;&#x8D28;&#x6587;&#x6863;&#x501F;&#x8FD8; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> RouterPathEnum<span class="token punctuation">.</span>lendTemp<span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> arg <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span>
                <span class="token keyword">case</span> del<span class="token operator">:</span> <span class="token comment">/* &#x5220;&#x9664;&#x6587;&#x6863; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">deleteFile</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> reset<span class="token operator">:</span> <span class="token comment">/* &#x91CD;&#x7F6E;&#x6587;&#x6863; */</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">resetFile</span><span class="token punctuation">(</span><span class="token punctuation">)</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">case</span> print<span class="token operator">:</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">printHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
                <span class="token keyword">default</span><span class="token operator">:</span>
                    <span class="token keyword">break</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">printHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment">// &#x70B9;&#x51FB;&#x6253;&#x5370;&#x6309;&#x94AE;&#xFF0C;&#x83B7;&#x53D6; &#x5F53;&#x524D;&#x9009;&#x4E2D;&#x884C; &#x7684;&#x9644;&#x4EF6;&#x5217;&#x8868;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> viewPos<span class="token punctuation">,</span> uploadPos <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>viewPos<span class="token punctuation">,</span> <span class="token string">&apos;viewPos&apos;</span><span class="token punctuation">)</span>
            <span class="token comment">// viewPos = uploadPos; &#x4E34;&#x65F6;&#x4E3A;&#x4E86;&#x6D4B;&#x8BD5; &#x6240;&#x4EE5;&#x624D;&#x5427; uploadPos &#x8D4B;&#x503C;&#x7ED9; viewPos</span>
            <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>viewPos <span class="token operator">||</span> viewPos<span class="token punctuation">.</span>length <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token string">&apos;&#x5F53;&#x524D;&#x6587;&#x6863;&#x6587;&#x4EF6;&#x6B63;&#x5728;&#x505A;&#x683C;&#x5F0F;&#x8F6C;&#x6362;,&#x8BF7;&#x7A0D;&#x540E;&#x518D;&#x8BD5;...&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&apos;cacheLocalPrintJob&apos;</span><span class="token punctuation">,</span> _id<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>printList<span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">choicePrint</span><span class="token punctuation">(</span><span class="token parameter"><span class="token punctuation">[</span>row<span class="token punctuation">,</span> <span class="token punctuation">{</span> fileName<span class="token punctuation">,</span> storagePath <span class="token punctuation">}</span><span class="token punctuation">]</span></span><span class="token punctuation">)</span><span class="token punctuation">{</span> <span class="token comment">// &#x6839;&#x636E;&#x9009;&#x4E2D;&#x9644;&#x4EF6;&#xFF0C; &#x8DF3;&#x8F6C;&#x5230; pdf &#x9884;&#x89C8;&#x9875;&#x9762;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> row<span class="token punctuation">;</span>
                <span class="token comment">// this.loading = true;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> view <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> file<span class="token punctuation">.</span><span class="token function">file_view</span><span class="token punctuation">(</span><span class="token punctuation">{</span> docId<span class="token operator">:</span> _id<span class="token punctuation">,</span> fileName<span class="token punctuation">,</span> storagePath <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>view<span class="token punctuation">,</span><span class="token string">&apos; view&apos;</span><span class="token punctuation">)</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span><span class="token punctuation">(</span>view<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                    <span class="token keyword">const</span> secretKey <span class="token operator">=</span> view<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                    <span class="token keyword">const</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> urlData <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> file<span class="token punctuation">.</span><span class="token function">file_pdf</span><span class="token punctuation">(</span>secretKey<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token comment">// const pdfPublicUri = `/api/file/pdf?key=${secretKey}`;</span>
                    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>urlData<span class="token punctuation">,</span> <span class="token string">&apos;urlddata&apos;</span><span class="token punctuation">)</span>
                    <span class="token keyword">const</span> <span class="token punctuation">{</span> value <span class="token punctuation">}</span> <span class="token operator">=</span> urlData<span class="token punctuation">;</span>
                    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>value<span class="token punctuation">,</span> <span class="token string">&apos;value&apos;</span><span class="token punctuation">)</span>
                    <span class="token comment">// const src = &apos;https://cdn.filestackcontent.com/wcrjf9qPTCKXV3hMXDwK&apos;</span>
                    <span class="token keyword">const</span> job <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&apos;cacheLocalPrintJob&apos;</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> fileName<span class="token punctuation">,</span> src<span class="token operator">:</span> value <span class="token punctuation">}</span><span class="token punctuation">)</span>
                    <span class="token keyword">if</span><span class="token punctuation">(</span>job<span class="token punctuation">)</span><span class="token punctuation">{</span>
                        <span class="token keyword">const</span> <span class="token punctuation">{</span> href <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">resolve</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> <span class="token string">&apos;/pdfview&apos;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        window<span class="token punctuation">.</span><span class="token function">open</span><span class="token punctuation">(</span>href<span class="token punctuation">,</span> <span class="token string">&apos;_blank&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>err<span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">exportShowHandler</span><span class="token punctuation">(</span><span class="token parameter">checks</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x5224;&#x65AD; &#x5BFC;&#x51FA;&#x6309;&#x94AE; &#x662F;&#x5426;&#x5C55;&#x793A;</span>
            <span class="token comment">/**
             * 1&#x3001;&#x9009;&#x4E2D;&#x81F3;&#x5C11;&#x4E00;&#x6761; V
             * 2&#x3001;state === 5
             * 3&#x3001;type === 11
             * 4&#x3001;isTax &#x514D;&#x7A0E;&#x62C5;&#x5F53;
             */</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>isTax<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxEnable <span class="token operator">=</span> checks<span class="token punctuation">.</span>length <span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>docxEnable <span class="token operator">=</span> checks<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> sealed<span class="token punctuation">,</span> denied<span class="token punctuation">,</span> reject<span class="token punctuation">,</span> lent <span class="token punctuation">}</span> <span class="token operator">=</span> DocStateEnum<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>checks<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x5224;&#x65AD;word</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>checks<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>state <span class="token operator">&gt;=</span> sealed <span class="token operator">&amp;&amp;</span> checks<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>state <span class="token operator">!=</span> denied <span class="token operator">&amp;&amp;</span> checks<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>state <span class="token operator">!=</span> reject <span class="token operator">&amp;&amp;</span> checks<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>type <span class="token operator">==</span> lent<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>docxShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>docxShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>checks<span class="token punctuation">.</span>length <span class="token operator">&gt;</span> <span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>docxShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> i <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> i <span class="token operator">&lt;</span> checks<span class="token punctuation">.</span>length<span class="token punctuation">;</span> i<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">const</span> item <span class="token operator">=</span> checks<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>item<span class="token punctuation">.</span>state <span class="token operator">&gt;=</span> sealed <span class="token operator">&amp;&amp;</span> item<span class="token punctuation">.</span>state <span class="token operator">!=</span> denied <span class="token operator">&amp;&amp;</span> item<span class="token punctuation">.</span>state <span class="token operator">!=</span> reject <span class="token operator">&amp;&amp;</span> item<span class="token punctuation">.</span>type <span class="token operator">==</span> lent<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                        <span class="token keyword">break</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>docxShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>xlsxShow<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>xlsxEnable <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>docxShow<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>docxEnable <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>exportIds <span class="token operator">=</span> checks<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> item<span class="token punctuation">.</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">handleSelectionChange</span><span class="token punctuation">(</span><span class="token parameter">val</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x884C;&#x9009;&#x4E2D;&#x4E8B;&#x4EF6;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection <span class="token operator">=</span> val<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>btnEnable <span class="token operator">=</span> val<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">exportShowHandler</span><span class="token punctuation">(</span>val<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>val<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;setParams&quot;</span><span class="token punctuation">,</span> val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> state<span class="token punctuation">,</span> uid <span class="token punctuation">}</span> <span class="token operator">=</span> val<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token comment">//&#x5B58;&#x6863;&#x5B8C;&#x6210; &#x5305;&#x542B;&#x7684;&#x4E24;&#x4E2A;&#x72B6;&#x6001;</span>
                <span class="token keyword">const</span> archivedStates <span class="token operator">=</span> <span class="token punctuation">[</span>DocStateEnum<span class="token punctuation">.</span>archived<span class="token punctuation">,</span> DocStateEnum<span class="token punctuation">.</span>lent<span class="token punctuation">]</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>archivedStates<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>state<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token comment">//&#x5224;&#x65AD;&#x5F53;&#x524D;&#x767B;&#x5F55;&#x7528;&#x6237;&#x89D2;&#x8272;&#x662F;&#x5426;&#x5305;&#x542B; &#x5B58;&#x6863;&#x62C5;&#x5F53;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>archived <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">.</span>roles<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>RoleEnum<span class="token punctuation">.</span>archiver<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token comment">//&#x53EF;&#x7F16;&#x8F91; &#x5305;&#x542B;&#x7684;&#x4E24;&#x4E2A;&#x72B6;&#x6001;</span>
                <span class="token keyword">const</span> editables <span class="token operator">=</span> <span class="token punctuation">[</span>DocStateEnum<span class="token punctuation">.</span>making<span class="token punctuation">,</span> DocStateEnum<span class="token punctuation">.</span>reject<span class="token punctuation">]</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>editables<span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>state<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isEdit <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;clearParams&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>archived <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isEdit <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">rowClick</span><span class="token punctuation">(</span><span class="token parameter">row<span class="token punctuation">,</span> column<span class="token punctuation">,</span> event</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x884C;&#x70B9;&#x51FB;&#x4E8B;&#x4EF6;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>column<span class="token punctuation">.</span>property <span class="token operator">==</span> <span class="token string">&quot;createTime&quot;</span> <span class="token operator">||</span> column<span class="token punctuation">.</span>type <span class="token operator">==</span> <span class="token string">&quot;selection&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>readTemp<span class="token punctuation">.</span><span class="token function">initRecords</span><span class="token punctuation">(</span>row<span class="token punctuation">.</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>readTemp<span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> row<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">exportOffice</span><span class="token punctuation">(</span><span class="token parameter">num</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x62A5;&#x8868;&#x5BFC;&#x51FA; &#x51FD;&#x6570;</span>
            <span class="token keyword">const</span> conf <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token string">&apos;&#x8D22;&#x52A1;&#x5370;&#x82B1;&#x7A0E;&#x4F7F;&#x7528;.xlsx&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x514D;&#x7A0E;&#x5546;&#x59D4;&#x4F7F;&#x7528;.xlsx&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x514D;&#x7A0E;&#x7A0E;&#x52A1;&#x5C40;&#x4F7F;&#x7528;.xlsx&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;&#x514D;&#x7A0E;&#x5907;&#x6848;&#x8868;_&#x7A0E;&#x52A1;&#x5C40;&#x4F7F;&#x7528;.docx&apos;</span><span class="token punctuation">]</span>
            <span class="token keyword">const</span> ids <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>exportIds<span class="token punctuation">.</span><span class="token function">join</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">const</span> data <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_export</span><span class="token punctuation">(</span><span class="token punctuation">{</span> ids<span class="token punctuation">,</span> type<span class="token operator">:</span> num<span class="token punctuation">,</span> name<span class="token operator">:</span> conf<span class="token punctuation">[</span>num <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href <span class="token operator">=</span> <span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">/api/doc/export?ids=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>ids<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">&amp;type=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>num<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">&amp;name=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>conf<span class="token punctuation">[</span>num <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token interpolation-punctuation punctuation">}</span></span><span class="token template-punctuation string">`</span></span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">resetFile</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x91CD;&#x7F6E;&#x6587;&#x6863;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.table.msg.reset&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&quot;confirm&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> operator<span class="token punctuation">.</span><span class="token function">operator_doc_reset</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.table.msg.successReset&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">deleteFile</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x5220;&#x9664;&#x6587;&#x6863;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.table.msg.confirm&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&quot;confirm&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_delete</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.table.msg.del&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">fmtQuery</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x683C;&#x5F0F;&#x5316;&#x67E5;&#x8BE2;&#x53C2;&#x6570;</span>
            <span class="token keyword">let</span> query <span class="token operator">=</span> <span class="token function">fmtSearchTime</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">)</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>cacheMenu<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>path<span class="token punctuation">]</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                query <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token operator">...</span>query<span class="token punctuation">,</span> <span class="token operator">...</span><span class="token keyword">this</span><span class="token punctuation">.</span>cacheMenu<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>path<span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">return</span> query<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x521D;&#x59CB;&#x5316;&#x6570;&#x636E;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
            <span class="token keyword">let</span> query <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">fmtQuery</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">[</span><span class="token punctuation">{</span> data<span class="token operator">:</span> page <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> count <span class="token punctuation">}</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">await</span> Promise<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span><span class="token punctuation">[</span>doc<span class="token punctuation">.</span><span class="token function">doc_page</span><span class="token punctuation">(</span>query<span class="token punctuation">)</span><span class="token punctuation">,</span> doc<span class="token punctuation">.</span><span class="token function">doc_count</span><span class="token punctuation">(</span>query<span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>page<span class="token punctuation">.</span>total <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">.</span>totalCount<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>footer <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>tableData <span class="token operator">=</span> page<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50;&#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;clearParams&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<p><img src="../../images/files_read.jpg" alt=""></p>
<h5 id="readtempindexvue">readTemp/index.vue</h5>
<blockquote>
<p>&#x6587;&#x6863;&#x67E5;&#x770B;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> doc_records <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api/doc&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fileI18nHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/filters&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> RecordType <span class="token keyword">as</span> RecordTypeEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    filters<span class="token operator">:</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;&#x6CE8;&#x518C;</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            isShow<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426;&#x5C55;&#x793A;</span>
            flowList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x5C65;&#x5386;&#x6570;&#x636E;&#x5217;&#x8868;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    props<span class="token operator">:</span> <span class="token punctuation">{</span>
        form<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7236;&#x7EC4;&#x4EF6;&#x4F20;&#x53C2;</span>
            type<span class="token operator">:</span> Object<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>fileI18nHandler<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">fmtCurrencyUnit</span><span class="token punctuation">(</span><span class="token parameter">num</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x683C;&#x5F0F;&#x5316; &#x8D27;&#x5E01;&#x5355;&#x4F4D;</span>
            <span class="token keyword">let</span> _curr <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>currencyUnit<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                _curr<span class="token punctuation">[</span>item<span class="token punctuation">.</span>id<span class="token punctuation">]</span> <span class="token operator">=</span> item<span class="token punctuation">.</span>name
            <span class="token punctuation">}</span><span class="token punctuation">)</span>
            <span class="token keyword">return</span> num <span class="token operator">&amp;&amp;</span> _curr<span class="token punctuation">[</span><span class="token operator">+</span>num<span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initRecords</span><span class="token punctuation">(</span><span class="token parameter">docId</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x67E5;&#x8BE2; &#x5BA1;&#x6838;&#x8BB0;&#x5F55; &#x6216; &#x51FA;&#x501F;&#x8BB0;&#x5F55;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token function">doc_records</span><span class="token punctuation">(</span>docId<span class="token punctuation">,</span> RecordTypeEnum<span class="token punctuation">.</span>review<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>flowList <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<p><img src="../../images/files_add.jpg" alt=""></p>
<h5 id="addtempindexvue">addTemp/index.vue</h5>
<blockquote>
<p>&#x6587;&#x6863;&#x6DFB;&#x52A0;&#x3001;&#x7F16;&#x8F91;&#x3001;&#x590D;&#x5236;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> moment <span class="token keyword">from</span> <span class="token string">&apos;moment&apos;</span><span class="token punctuation">;</span> <span class="token comment">// moment &#x65E5;&#x671F;&#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> 
    ReqOptType <span class="token keyword">as</span> ReqOptTypeEnum<span class="token punctuation">,</span>
    DocumentCategory <span class="token keyword">as</span> CategoryEnum<span class="token punctuation">,</span>
    DocumentType <span class="token keyword">as</span> TypeEnum<span class="token punctuation">,</span>
    DocumentState <span class="token keyword">as</span> StateEnum
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> doc <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> igniteDataHandler<span class="token punctuation">,</span> uploadHandler<span class="token punctuation">,</span> fileI18nHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> approveTemp <span class="token keyword">from</span> <span class="token string">&apos;@/views/files/approve&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x5BA1;&#x67E5;&#x6A21;&#x677F;&#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Switch <span class="token keyword">as</span> vswitch <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span> <span class="token comment">// switch &#x9009;&#x62E9;&#x5668; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> LocalStorageEnum <span class="token keyword">as</span> LSEnum<span class="token punctuation">,</span> RouterToEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> _ <span class="token keyword">from</span> <span class="token string">&apos;lodash&apos;</span><span class="token punctuation">;</span> <span class="token comment">// lodash &#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> omit <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x81EA;&#x5B9A;&#x4E49;&#x5DE5;&#x5177;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
        approveTemp<span class="token punctuation">,</span>
        vswitch
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>uploadHandler<span class="token punctuation">,</span> fileI18nHandler<span class="token punctuation">,</span> igniteDataHandler<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            loading<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// loading</span>
            headers<span class="token operator">:</span> <span class="token punctuation">{</span> token<span class="token operator">:</span> localStorage<span class="token punctuation">.</span><span class="token function">getItem</span><span class="token punctuation">(</span>LSEnum<span class="token punctuation">.</span>token<span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x4E0A;&#x4F20;&#x6587;&#x4EF6; &#x8BF7;&#x6C42;&#x5934;&#x90E8;</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span> sealTypes<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> uploadPos<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> category<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> type<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> format<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> pagingSeal<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> state<span class="token operator">:</span> StateEnum<span class="token punctuation">.</span>making<span class="token punctuation">,</span> signatoryType<span class="token operator">:</span> <span class="token boolean">true</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x5355;form &#x6570;&#x636E;</span>
            checkBoxActive<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
            typeList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x522B; &#x5217;&#x8868; &#xFF08;&#x7236;&#xFF09;</span>
            childTypeList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x578B; &#x5217;&#x8868; &#xFF08;&#x5B50;&#xFF09;</span>
            noPrice<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426;&#x6D89;&#x53CA;&#x91D1;&#x989D;</span>
            noContract<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426; &#x663E;&#x793A;&#x7B7E;&#x7EA6;&#x65B9;</span>
            checkBoxs<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x76D6;&#x7AE0; &#x5217;&#x8868;</span>
            isSeam<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span><span class="token comment">//&#x9A91;&#x7F1D;&#x7AE0;</span>
            isDf<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span><span class="token comment">//&#x662F;&#x5426;&#x9700;&#x8981; DF</span>
            isDateRound<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x5408;&#x540C;&#x671F;&#x95F4; &#x662F;&#x5426;&#x5C55;&#x793A;</span>
            approveBtn<span class="token operator">:</span> <span class="token string">&apos;&apos;</span><span class="token punctuation">,</span> <span class="token comment">// &#x56FD;&#x9645;&#x5316; &#x6309;&#x94AE;&#x5185;&#x5BB9;</span>
            approveObj<span class="token operator">:</span> <span class="token punctuation">{</span> reqOptType<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> documentCategory<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> multiple<span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//&#x5BA1;&#x6279;&#x6A21;&#x677F;&#x53C2;&#x6570;</span>
            approveLines<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x83B7;&#x53D6;&#x5BA1;&#x67E5; &#x6A21;&#x677F; &#x6570;&#x636E;</span>
            isOverseasContract<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//&#x5883;&#x5916;&#x5408;&#x540C;</span>
            isCurrencyUnit<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//&#x8D27;&#x5E01;&#x5355;&#x4F4D;&#x662F;&#x5426;&#x5FC5;&#x9009;</span>
            auditList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x5BA1;&#x67E5;&#x8DEF;&#x5F84;&#x4EBA;&#x5458;&#x5217;&#x8868;</span>
            defaultAudits<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//&#x9ED8;&#x8BA4;&#x503C;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span>
            <span class="token string">&apos;user&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;queryParams&apos;</span>
        <span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token function">uploadData</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x4E0A;&#x4F20; &#x9ED8;&#x8BA4; data &#x503C;</span>
            <span class="token keyword">return</span> <span class="token punctuation">{</span> storage<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> documentCategory<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token punctuation">}</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">title</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5C0F;&#x6807;&#x9898;&#xFF08;&#x56FD;&#x9645;&#x5316;&#xFF09;</span>
            <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> RouterToEnum<span class="token punctuation">.</span>edit <span class="token operator">?</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.title&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.title&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">approveBtnCache</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x56FD;&#x9645;&#x5316; &#x6309;&#x94AE;&#x5185;&#x5BB9; </span>
            <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.approveBtn&apos;</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">inputMoney</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>contractMoney<span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>applyMoney<span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    watch<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x76D1;&#x542C; data &#x5C5E;&#x6027;&#x6539;&#x53D8;</span>
        <span class="token function">approveBtnCache</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token comment">//&#x91CD;&#x65B0;&#x83B7;&#x53D6; &#x56FD;&#x9645;&#x5316; &#x6309;&#x94AE;&#x5185;&#x5BB9;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">!=</span> RouterToEnum<span class="token punctuation">.</span>add<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> category <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token comment">//&#x7533;&#x8BF7;&#x4FDD;&#x7BA1; or &#x7533;&#x8BF7;&#x76D6;&#x7AE0;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">contractType</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initSelectList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getSealType</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>type<span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">inputMoney</span><span class="token punctuation">(</span><span class="token parameter">moneys</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">let</span> flag <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            moneys<span class="token punctuation">.</span><span class="token function">forEach</span><span class="token punctuation">(</span><span class="token parameter">val</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>val <span class="token operator">!=</span> <span class="token keyword">null</span> <span class="token operator">&amp;&amp;</span> val <span class="token operator">!=</span> <span class="token keyword">undefined</span> <span class="token operator">&amp;&amp;</span> val <span class="token operator">!=</span> <span class="token string">&apos;&apos;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    flag <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>isCurrencyUnit <span class="token operator">=</span> flag<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>flag<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">clearValidate</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">back</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8FD4;&#x56DE;&#x4E0A;&#x4E00;&#x5C42;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">contractTypeHandler</span><span class="token punctuation">(</span><span class="token parameter">e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x522B;&#xFF08;&#x7236;&#xFF09; &#x4E0B;&#x62C9;&#x9009;&#x62E9;&#x5668; &#x9009;&#x62E9;&#x65F6;&#x89E6;&#x53D1; &#x51FD;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">clearValidate</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x5408;&#x540C;&#x671F;&#x95F4; </span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">dateRoundShow</span><span class="token punctuation">(</span>e<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>type <span class="token operator">=</span> <span class="token keyword">undefined</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getSealType</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>noPrice <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>noContract <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span><span class="token comment">//&#x7533;&#x8BF7;&#x4FDD;&#x7BA1;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">let</span> obj <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> id <span class="token keyword">in</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>id <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span> <span class="token operator">===</span> e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    obj<span class="token punctuation">[</span>id<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>id<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> obj<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>type <span class="token operator">=</span> Object<span class="token punctuation">.</span><span class="token function">keys</span><span class="token punctuation">(</span>obj<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getSealType</span><span class="token punctuation">(</span>Object<span class="token punctuation">.</span><span class="token function">keys</span><span class="token punctuation">(</span>obj<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x662F;&#x5426;&#x6D89;&#x53CA;&#x91D1;&#x989D;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>noPrice <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>e <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>noPrice<span class="token punctuation">;</span>
            <span class="token comment">//&#x662F;&#x5426; &#x663E;&#x793A;&#x7B7E;&#x7EA6;&#x65B9;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>noContract <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>e <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>noContract<span class="token punctuation">;</span>
            <span class="token comment">//&#x7533;&#x8BF7;&#x4FDD;&#x7BA1; or &#x7533;&#x8BF7;&#x76D6;&#x7AE0;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>e <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x8BBE;&#x7F6E;&#x5BA1;&#x6279;&#x53C2;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>reqOptType <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>e <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> ReqOptTypeEnum<span class="token punctuation">.</span>seal <span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>keep<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>documentCategory <span class="token operator">=</span> e<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">childContractTypeHandler</span><span class="token punctuation">(</span><span class="token parameter">e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x578B;&#xFF08;&#x5B50;&#xFF09; &#x4E0B;&#x62C9;&#x9009;&#x62E9;&#x5668; &#x9009;&#x62E9;&#x65F6;&#x89E6;&#x53D1; &#x51FD;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">clearValidate</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>typeList <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getSealType</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token comment">//&#x5408;&#x540C;&#x671F;&#x95F4; </span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">dateRoundShow</span><span class="token punctuation">(</span><span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token comment">/**&#x683C;&#x5F0F;&#x5316;&#x5F53;&#x524D;&#x9009;&#x4E2D;&#x5F52;&#x5C5E;&#x4E0E;&#x7684;&#x5B50;&#x7C7B;&#x578B; */</span>
            <span class="token keyword">let</span> obj <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> id <span class="token keyword">in</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>id <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span> <span class="token operator">===</span> Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    obj<span class="token punctuation">[</span>id<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>id<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> obj<span class="token punctuation">;</span>
            <span class="token comment">/***************************** */</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getSealType</span><span class="token punctuation">(</span>e<span class="token punctuation">,</span> <span class="token keyword">null</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x5408;&#x540C;&#x671F;&#x95F4; </span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">dateRoundShow</span><span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">=</span> Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x8BBE;&#x7F6E;&#x5BA1;&#x6279;&#x53C2;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>documentCategory <span class="token operator">=</span> Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>reqOptType <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> ReqOptTypeEnum<span class="token punctuation">.</span>seal <span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>keep<span class="token punctuation">;</span>
            <span class="token comment">//&#x662F;&#x5426;&#x6D89;&#x53CA;&#x91D1;&#x989D;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>noPrice <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>noPrice<span class="token punctuation">;</span>
            <span class="token comment">//&#x662F;&#x5426; &#x663E;&#x793A;&#x7B7E;&#x7EA6;&#x65B9;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>noContract <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>noContract<span class="token punctuation">;</span>
            <span class="token comment">//&#x7533;&#x8BF7;&#x4FDD;&#x7BA1; or &#x7533;&#x8BF7;&#x76D6;&#x7AE0;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">dateRoundShow</span><span class="token punctuation">(</span><span class="token parameter">category</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5408;&#x540C;&#x671F;&#x95F4; &#x51FD;&#x6570;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> incomeContract<span class="token punctuation">,</span> exportContract<span class="token punctuation">,</span> specialContract<span class="token punctuation">,</span> normalContract <span class="token punctuation">}</span> <span class="token operator">=</span> CategoryEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> required_ <span class="token operator">=</span> <span class="token punctuation">[</span>incomeContract<span class="token punctuation">,</span> exportContract<span class="token punctuation">,</span> specialContract<span class="token punctuation">,</span> normalContract<span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>category <span class="token operator">&amp;&amp;</span> required_<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span>category<span class="token punctuation">)</span> <span class="token operator">!=</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isDateRound <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isDateRound <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;startTime&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;startTime_&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;endTime&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;endTime_&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">getSealType</span><span class="token punctuation">(</span><span class="token parameter">e<span class="token punctuation">,</span> isCreated</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x83B7;&#x53D6;&#x76D6;&#x7AE0;&#x5217;&#x8868;</span>
            <span class="token comment">//&#x5224;&#x65AD;&#x5883;&#x5916;&#x5408;&#x540C;&#xFF0C;&#x6821;&#x9A8C;&#x8D27;&#x5E01;&#x5355;&#x4F4D;&#x3001;&#x5408;&#x540C;&#x91D1;&#x989D; e == 11 &#x5883;&#x5916;&#x5408;&#x540C;&#xFF1B; </span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>isOverseasContract <span class="token operator">=</span> e <span class="token operator">==</span> TypeEnum<span class="token punctuation">.</span>foreginTrustee<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//isDf</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isDf <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>e<span class="token punctuation">]</span><span class="token punctuation">.</span>noDf<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token keyword">const</span> <span class="token punctuation">{</span> pagingSeal <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">;</span>

            <span class="token keyword">if</span> <span class="token punctuation">(</span>e <span class="token operator">&amp;&amp;</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>e<span class="token punctuation">]</span><span class="token punctuation">.</span>sealType <span class="token operator">!=</span> <span class="token keyword">null</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>checkBoxs <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>sealTypeList<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>e<span class="token punctuation">]</span><span class="token punctuation">.</span>sealType<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>sealTypes <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>e<span class="token punctuation">]</span><span class="token punctuation">.</span>sealType <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>sealTypes <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token comment">//&quot;&#x6536;&#x5165;&#x5408;&#x540C;&quot;&#x548C;&quot;&#x652F;&#x51FA;&#x5408;&#x540C;&quot;&#x65F6;, &#x9ED8;&#x8BA4;&#x52FE;&#x9009;&#x3010;&#x516C;&#x53F8;&#x5408;&#x540C;&#x7AE0;&#x3011;&#x3002;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> incomeContract<span class="token punctuation">,</span> exportContract<span class="token punctuation">,</span> instrument <span class="token punctuation">}</span> <span class="token operator">=</span> CategoryEnum<span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token punctuation">[</span>incomeContract<span class="token punctuation">,</span> exportContract<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>sealTypes<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token number">2</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span> <span class="token operator">!=</span> instrument<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>pagingSeal <span class="token operator">=</span> isCreated <span class="token operator">==</span> <span class="token string">&apos;created&apos;</span> <span class="token operator">?</span> pagingSeal <span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isSeam <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>pagingSeal <span class="token operator">=</span> isCreated <span class="token operator">==</span> <span class="token string">&apos;created&apos;</span> <span class="token operator">?</span> pagingSeal <span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>isSeam <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>checkBoxs <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>isSeam <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>pagingSeal <span class="token operator">=</span> isCreated <span class="token operator">==</span> <span class="token string">&apos;created&apos;</span> <span class="token operator">?</span> pagingSeal <span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">tempDestroyed</span><span class="token punctuation">(</span><span class="token parameter">signatoryType</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5BA1;&#x67E5;&#x6A21;&#x677F; &#x5173;&#x95ED;&#x65F6; &#x89E6;&#x53D1;&#x51FD;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>signatoryType <span class="token operator">=</span> signatoryType<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">approveHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// 1&#x3001;&#x5BA1;&#x67E5;&#x6A21;&#x677F; &#x5185; &#x662F;&#x5426;&#x591A;&#x4EBA;&#x786E;&#x8BA4; &#x6309;&#x94AE;&#x70B9;&#x51FB;&#x65F6; &#x89E6;&#x53D1; &#x5F53;&#x524D;&#xFF08;&#x7236;&#xFF09; &#x7EC4;&#x4EF6;&#x51FD;&#x6570; 2&#x3001;&#x8868;&#x5355;&#x63D0;&#x4EA4;&#x65F6; &#x83B7;&#x53D6;&#x9700;&#x8981;&#x7684;&#x5BA1;&#x67E5;&#x6570;&#x636E;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> instrument<span class="token punctuation">,</span> otherInstrument <span class="token punctuation">}</span> <span class="token operator">=</span> CategoryEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> noAudit <span class="token punctuation">}</span> <span class="token operator">=</span> TypeEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> type<span class="token punctuation">,</span> category<span class="token punctuation">,</span> contractMoney<span class="token punctuation">,</span> signatoryType<span class="token punctuation">,</span> sealTypes <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token punctuation">[</span>instrument<span class="token punctuation">,</span> otherInstrument<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>category<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token comment">//&#x7B7E;&#x7EA6;&#x65B9; &#x5982;&#x679C;&#x6587;&#x6863;&#x7C7B;&#x522B;&#x4E3A; &#x6587;&#x4E66;&#xFF08;category == 5 || 6&#xFF09;&#xFF0C;&#x5219;&#x4E0D;&#x4F20;&#x53C2;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>signatoryType <span class="token operator">=</span> signatoryType<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">+</span>type <span class="token operator">==</span> noAudit<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>documentType <span class="token operator">=</span> <span class="token operator">+</span>type<span class="token punctuation">;</span>
                <span class="token comment">//&#x6587;&#x6863;&#x7C7B;&#x578B;&#x5982;&#x679C;&#x4E3A; &#x76F4;&#x63A5;&#x4FDD;&#x7BA1;&#x6587;&#x4E66; 66&#xFF0C;reqOptType = 8</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>reqOptType <span class="token operator">=</span> ReqOptTypeEnum<span class="token punctuation">.</span>directArchive<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">+</span>contractMoney<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>contractMoney <span class="token operator">=</span> <span class="token operator">+</span>contractMoney
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">,</span> <span class="token string">&apos;contractMoney&apos;</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>sealTypes<span class="token punctuation">.</span>length <span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>sealType <span class="token operator">=</span> sealTypes<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">+</span>category <span class="token operator">==</span> otherInstrument<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">,</span> <span class="token string">&apos;sealType&apos;</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_process</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>approveLines <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>data<span class="token punctuation">.</span>keepLines<span class="token punctuation">.</span>length <span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>approve<span class="token punctuation">.</span>isKeepLines <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>approve<span class="token punctuation">.</span>isKeepLines <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">+</span>type <span class="token operator">==</span> noAudit<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> onlySaveData <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getDefaultFormData</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    onlySaveData<span class="token punctuation">.</span>reqOptType <span class="token operator">=</span> ReqOptTypeEnum<span class="token punctuation">.</span>directArchive<span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">submit</span><span class="token punctuation">(</span><span class="token string">&apos;approve&apos;</span><span class="token punctuation">,</span> onlySaveData<span class="token punctuation">)</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>auditList <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getAuditList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>defaultAudits <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getDefaultAudits</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>approve<span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token punctuation">{</span> errorCode<span class="token punctuation">,</span> errorMsg <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">submit</span><span class="token punctuation">(</span><span class="token parameter">decide<span class="token punctuation">,</span> formData</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x8868;&#x5355;&#x63D0;&#x4EA4;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> add<span class="token punctuation">,</span> edit<span class="token punctuation">,</span> copy <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> checkVal <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to<span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">let</span> data<span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>checkVal <span class="token operator">==</span> edit<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> res <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_update</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>_id<span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    data <span class="token operator">=</span> res<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>checkVal <span class="token operator">==</span> add<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> res <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_save</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token operator">...</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> uid<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">.</span>_id <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    data <span class="token operator">=</span> res<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>checkVal <span class="token operator">==</span> copy<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;_id&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;__v&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;createTime&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;uid&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;archiveEndTime&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>finalPos <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                    <span class="token keyword">let</span> res <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_save</span><span class="token punctuation">(</span><span class="token punctuation">{</span> <span class="token operator">...</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> uid<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">.</span>_id <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    data <span class="token operator">=</span> res<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>decide <span class="token operator">==</span> <span class="token string">&apos;approve&apos;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">let</span> _doc <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
                        <span class="token keyword">if</span> <span class="token punctuation">(</span>checkVal <span class="token operator">==</span> edit<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                            _doc <span class="token operator">=</span> <span class="token punctuation">{</span>
                                docId<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>_id<span class="token punctuation">,</span>
                                docName<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>name
                            <span class="token punctuation">}</span>
                        <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                            _doc <span class="token operator">=</span> <span class="token punctuation">{</span>
                                docId<span class="token operator">:</span> data<span class="token punctuation">.</span>data<span class="token punctuation">.</span>_id<span class="token punctuation">,</span>
                                docName<span class="token operator">:</span> data<span class="token punctuation">.</span>data<span class="token punctuation">.</span>name
                            <span class="token punctuation">}</span>
                        <span class="token punctuation">}</span>
                        <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">subApprove</span><span class="token punctuation">(</span>_doc<span class="token punctuation">,</span> formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token comment">//&#x89E3;&#x51B3; &#x6DFB;&#x52A0;&#x4E0D;&#x6210;&#x529F;&#x65F6;, ui&#x6837;&#x5F0F; &#x56E0;&#x4E3A; boolean &#x8F6C;&#x6362;&#x6210; &#x6570;&#x5B57; bug.</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>signatoryType <span class="token operator">=</span> <span class="token operator">!</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>signatoryType<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subApprove</span><span class="token punctuation">(</span><span class="token parameter"><span class="token punctuation">{</span> docId<span class="token punctuation">,</span> docName <span class="token punctuation">}</span><span class="token punctuation">,</span> form</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x53D1;&#x8D77;&#x5BA1;&#x67E5;</span>
            <span class="token keyword">const</span> formData <span class="token operator">=</span> <span class="token punctuation">{</span>
                docId<span class="token punctuation">,</span>
                docName<span class="token punctuation">,</span>
                reqOptType<span class="token operator">:</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> ReqOptTypeEnum<span class="token punctuation">.</span>seal <span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>keep<span class="token punctuation">,</span>
                <span class="token operator">...</span>form
            <span class="token punctuation">}</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_ignite</span><span class="token punctuation">(</span>formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">validate</span><span class="token punctuation">(</span><span class="token parameter">e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8868;&#x5355;&#x6821;&#x9A8C;</span>
            <span class="token comment">//&#x5224;&#x65AD;&#x662F;&#x5426;&#x8BBE;&#x8BA1;&#x91D1;&#x989D;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>noPrice<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x4E0D;&#x6D89;&#x53CA;&#x91D1;&#x989D;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;currencyUnit&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;contractMoney&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;applyMoney&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>noContract<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x6CA1;&#x6709;&#x7B7E;&#x7EA6;&#x65B9;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;signatoryType&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;signatory&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;format&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> currencyUnit<span class="token punctuation">,</span> contractMoney<span class="token punctuation">,</span> applyMoney<span class="token punctuation">,</span> description<span class="token punctuation">,</span> startTime_<span class="token punctuation">,</span> endTime_<span class="token punctuation">,</span> category<span class="token punctuation">,</span> decisiveNo<span class="token punctuation">,</span> decisiveLink<span class="token punctuation">,</span> sealTypes<span class="token punctuation">,</span> signatory<span class="token punctuation">,</span> signatoryType <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> incomeContract<span class="token punctuation">,</span> exportContract <span class="token punctuation">}</span> <span class="token operator">=</span> CategoryEnum<span class="token punctuation">;</span>
            <span class="token comment">//&#x5982;&#x679C;&#x7C7B;&#x522B;&#x4E3A; &#x6536;&#x5165;&#x6216;&#x652F;&#x51FA;&#x5408;&#x540C;&#x65F6;&#xFF0C;DF&#x53EF;&#x51B3;&#x53F7;&#x4E3A;&#x5FC5;&#x586B;&#x9879;</span>
            <span class="token comment">//&#x5E74;&#x540E;&#x53C8;&#x6DFB;&#x52A0;&#x7684; =&gt; &#x9009;&#x62E9;&quot;&#x6536;&#x5165;&#x5408;&#x540C;&quot;&#x548C;&quot;&#x652F;&#x51FA;&#x5408;&#x540C;&quot;&#x65F6;&#xFF0C;&#x3010;&#x5408;&#x540C;&#x671F;&#x95F4;&#x3011;&#xFF0C;&#x3010;DF&#x53EF;&#x51B3;&#x53F7;&#x3011;&#xFF0C;&#x3010;DF&#x8FDE;&#x63A5;&#x3011;&#xFF0C;&#x3010;&#x7B7E;&#x7EA6;&#x65B9;&#x3011;&#x8BF7;&#x8BBE;&#x5B9A;&#x4E3A;&#x5FC5;&#x586B;&#x9879;&#x3002;&#x4E14;&#x9700;&#x8981;&#x76D6;&#x7AE0;&#x7C7B;&#x578B;&#x8BF7;&#x9ED8;&#x8BA4;&#x52FE;&#x9009;&#x3010;&#x516C;&#x53F8;&#x5408;&#x540C;&#x7AE0;&#x3011;&#x3002;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token punctuation">[</span>incomeContract<span class="token punctuation">,</span> exportContract<span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token function">includes</span><span class="token punctuation">(</span>category<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>decisiveNo<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">&quot;DF&#x53EF;&#x51B3;&#x53F7;&#x5FC5;&#x586B;&quot;</span><span class="token punctuation">)</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.warningDF&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">return</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>decisiveLink<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token string">&apos;DF&#x94FE;&#x63A5;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">return</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span>signatory<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token string">&apos;&#x7B7E;&#x7EA6;&#x65B9;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">return</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token comment">//&#x7533;&#x8BF7;&#x76D6;&#x7AE0;&#x4E0B; &#x76D6;&#x7AE0;&#x7C7B;&#x578B;&#x5FC5;&#x586B;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>checkBoxs<span class="token punctuation">.</span>length <span class="token operator">&gt;</span> <span class="token number">0</span> <span class="token operator">&amp;&amp;</span> sealTypes<span class="token punctuation">.</span>length <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.warningSealTypes&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>

            <span class="token keyword">if</span> <span class="token punctuation">(</span>contractMoney <span class="token operator">||</span> applyMoney<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>currencyUnit<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.warningUnit&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x8BF7;&#x9009;&#x62E9;&#x8D27;&#x5E01;&#x5355;&#x4F4D;</span>
                    <span class="token keyword">return</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token comment">//&#x5982;&#x679C;&#x5408;&#x540C;&#x91D1;&#x989D;&#x548C;DF&#x91D1;&#x989D;&#x90FD;&#x586B;&#x5199;&#x4E86;&#xFF0C;&#x5E76;&#x4E14;&#x4E0D;&#x4E00;&#x81F4;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x8BF4;&#x660E;&#x6587;&#x5F53;&#x5219;&#x5FC5;&#x586B;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>contractMoney <span class="token operator">&amp;&amp;</span> applyMoney<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>contractMoney <span class="token operator">!=</span> applyMoney <span class="token operator">&amp;&amp;</span> <span class="token operator">!</span>description<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.warningDesc&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x8BF7;&#x586B;&#x5199;&#x6587;&#x6863;&#x8BF4;&#x660E;</span>
                    <span class="token keyword">return</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>isDf<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;decisiveNo&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;decisiveLink&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token comment">//&#x6821;&#x9A8C; &#x5408;&#x540C;&#x671F;&#x95F4;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>startTime_ <span class="token operator">&amp;&amp;</span> endTime_ <span class="token operator">&amp;&amp;</span> startTime_ <span class="token operator">&lt;=</span> endTime_<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime <span class="token operator">=</span> startTime_ <span class="token operator">+</span> <span class="token string">&apos; 00:00:00&apos;</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime <span class="token operator">=</span> endTime_ <span class="token operator">+</span> <span class="token string">&apos; 23:59:59&apos;</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token keyword">if</span> <span class="token punctuation">(</span>startTime_ <span class="token operator">||</span> endTime_<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.warningDate&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x8BF7;&#x9009;&#x62E9;&#x6B63;&#x786E;&#x7684;&#x671F;&#x95F4;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token comment">//&#x6821;&#x9A8C; &#x5982;&#x679C;&#x6587;&#x6863;&#x7C7B;&#x578B;&#x4E0D;&#x4E3A; &#x652F;&#x51FA; &#x548C; &#x6536;&#x5165; &#x65F6;&#xFF0C; &#x5408;&#x540C;&#x671F;&#x95F4;&#x975E;&#x5FC5;&#x586B; </span>
                <span class="token keyword">const</span> requireds <span class="token operator">=</span> <span class="token punctuation">[</span>incomeContract<span class="token punctuation">,</span> exportContract<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>requireds<span class="token punctuation">.</span><span class="token function">indexOf</span><span class="token punctuation">(</span>category<span class="token punctuation">)</span> <span class="token operator">!=</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.addTemp.msg.warningDate&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x8BF7;&#x9009;&#x62E9;&#x6B63;&#x786E;&#x7684;&#x671F;&#x95F4;</span>
                    <span class="token keyword">return</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime <span class="token operator">=</span> <span class="token keyword">null</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>

            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>form<span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token parameter">valid</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>valid<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token comment">//&#x683C;&#x5F0F;&#x5316; &#x96C6;&#x56E2;&#x7B7E;&#x7EA6;&#x65B9; &#x4E3A; number</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>signatoryType <span class="token operator">=</span> <span class="token operator">~</span><span class="token operator">~</span>signatoryType<span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span>e <span class="token operator">==</span> <span class="token string">&apos;save&apos;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">submit</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">approveHandler</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">clearValidate</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x6E05;&#x9664;&#x8868;&#x5355;&#x6821;&#x9A8C;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>form<span class="token punctuation">.</span><span class="token function">clearValidate</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">uploadSuccess</span><span class="token punctuation">(</span><span class="token parameter"><span class="token punctuation">{</span> data<span class="token punctuation">,</span> errorCode <span class="token punctuation">}</span><span class="token punctuation">,</span> file<span class="token punctuation">,</span> fileList</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x9644;&#x4EF6;&#x4E0A;&#x4F20;&#x6210;&#x529F;&#x65F6; &#x56DE;&#x8C03;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> _uploadPos <span class="token operator">=</span> <span class="token punctuation">{</span> timestamp<span class="token operator">:</span> <span class="token function">moment</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD HH:mm:ss&quot;</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token operator">...</span>data <span class="token punctuation">}</span><span class="token punctuation">;</span>
                console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>_uploadPos<span class="token punctuation">,</span> <span class="token string">&apos;_uploadPos&apos;</span><span class="token punctuation">)</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>uploadPos<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>_uploadPos<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">closeUpload</span><span class="token punctuation">(</span><span class="token parameter">e<span class="token punctuation">,</span> i</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x5220;&#x9664;&#x4E0A;&#x4F20;&#x7684;&#x9644;&#x4EF6;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>uploadPos<span class="token punctuation">.</span><span class="token function">splice</span><span class="token punctuation">(</span>i<span class="token punctuation">,</span> <span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initSelectList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x6587;&#x6863;&#x7C7B;&#x522B; &#x3001;&#x6587;&#x6863;&#x7C7B;&#x578B;&#x7684; &#x4E0B;&#x62C9;&#x6570;&#x636E;&#x5217;&#x8868;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>typeList <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50; &#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</span>
        <span class="token keyword">const</span> <span class="token punctuation">{</span> add<span class="token punctuation">,</span> copy <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initSelectList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">//&#x5224;&#x65AD;&#x662F;&#x5426;&#x5237;&#x65B0;&#x9875;&#x9762;&#xFF0C;&#x5F53;edit &#x6216;&#x8005; copy &#x65F6;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">!=</span> add <span class="token operator">&amp;&amp;</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">return</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">!=</span> add<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token comment">/**&#x683C;&#x5F0F;&#x5316;&#x5B50;&#x7C7B;&#x578B;&#x5217;&#x8868;&#x8303;&#x56F4; */</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> category<span class="token punctuation">,</span> type<span class="token punctuation">,</span> sealTypes<span class="token punctuation">,</span> startTime<span class="token punctuation">,</span> endTime<span class="token punctuation">,</span> pagingSeal<span class="token punctuation">,</span> signatoryType <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
            <span class="token comment">//&#x5408;&#x540C;&#x671F;&#x95F4;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">dateRoundShow</span><span class="token punctuation">(</span>category<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">let</span> obj <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> id <span class="token keyword">in</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>id <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span> <span class="token operator">===</span> category<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    obj<span class="token punctuation">[</span>id<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>id<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> obj<span class="token punctuation">;</span>
            <span class="token keyword">let</span> fileDate <span class="token operator">=</span> <span class="token punctuation">{</span>
                startTime_<span class="token operator">:</span> startTime <span class="token operator">&amp;&amp;</span> <span class="token function">moment</span><span class="token punctuation">(</span>startTime<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD&quot;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
                endTime_<span class="token operator">:</span> endTime <span class="token operator">&amp;&amp;</span> <span class="token function">moment</span><span class="token punctuation">(</span>endTime<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD&quot;</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token punctuation">{</span> <span class="token operator">...</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">,</span> <span class="token operator">...</span>fileDate<span class="token punctuation">,</span> type<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>type <span class="token operator">+</span> <span class="token string">&apos;&apos;</span> <span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x683C;&#x5F0F;&#x5316; &#x96C6;&#x56E2;&#x7B7E;&#x7EA6;&#x65B9;checkbox &#x4E3A;boolean</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>signatoryType <span class="token operator">||</span> signatoryType <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>signatoryType <span class="token operator">=</span> <span class="token operator">!</span><span class="token operator">!</span>signatoryType<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token comment">//&#x662F;&#x5426;&#x6D89;&#x53CA;&#x91D1;&#x989D;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>noPrice <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>noPrice<span class="token punctuation">;</span>
            <span class="token comment">//&#x662F;&#x5426; &#x663E;&#x793A;&#x7B7E;&#x7EA6;&#x65B9;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>noContract <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>noContract<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getSealType</span><span class="token punctuation">(</span>type<span class="token punctuation">,</span> <span class="token string">&apos;created&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>sealTypes <span class="token operator">=</span> sealTypes<span class="token punctuation">;</span>
            <span class="token comment">//&#x8BBE;&#x7F6E;&#x5BA1;&#x6279;&#x53C2;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>reqOptType <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> ReqOptTypeEnum<span class="token punctuation">.</span>seal <span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>keep<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>documentCategory <span class="token operator">=</span> category<span class="token punctuation">;</span>
            <span class="token comment">//&#x7533;&#x8BF7;&#x4FDD;&#x7BA1; or &#x7533;&#x8BF7;&#x76D6;&#x7AE0;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtn <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span> <span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>approveBtnCache<span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> copy<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>name <span class="token operator">=</span> <span class="token string">&apos;&apos;</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>state <span class="token operator">=</span> StateEnum<span class="token punctuation">.</span>making<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>uploadPos <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="approveindexvue">approve/index.vue</h5>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> moment <span class="token keyword">from</span> <span class="token string">&apos;moment&apos;</span><span class="token punctuation">;</span> <span class="token comment">// moment.js &#x65E5;&#x671F;&#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Switch <span class="token keyword">as</span> vswitch <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span> <span class="token comment">// switch &#x9009;&#x62E9;&#x5668; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> igniteDataHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> ResOptType <span class="token keyword">as</span> ResOptTypeEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            isShow<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426;&#x5C55;&#x793A;</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span> emergency<span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x5355;&#x6570;&#x636E;</span>
            isKeepLines<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426; &#x76D6;&#x7AE0;&#x9700;&#x591A;&#x4EBA;&#x786E;&#x8BA4;</span>
            auditData<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>igniteDataHandler<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    watch<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x76D1;&#x542C; data &#x5C5E;&#x6027; &#x6539;&#x53D8;</span>
        <span class="token function">isShow</span><span class="token punctuation">(</span><span class="token parameter">bool</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>bool<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&apos;tempDestroyed&apos;</span><span class="token punctuation">,</span> <span class="token operator">!</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>signatoryType<span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
        vswitch
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">&apos;user&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    props<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7236;&#x7EC4;&#x4EF6;&#x4F20;&#x53C2;</span>
        approveLines<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Object<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        approveObj<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Object<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        auditList<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Array<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        defaultAudits<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Object<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">changeMore</span><span class="token punctuation">(</span><span class="token parameter">bool</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x662F;&#x5426;&#x591A;&#x4EBA;&#x786E;&#x8BA4; &#x9009;&#x62E9;&#x65F6; &#x89E6;&#x53D1;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&quot;approveHandler&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subApprove</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x63D0;&#x4EA4;&#x5BA1;&#x6838;</span>
            <span class="token keyword">const</span> today <span class="token operator">=</span> <span class="token function">moment</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>date <span class="token operator">&amp;&amp;</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>date <span class="token operator">&lt;</span> today<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.subAppTemp.msg.warningDate&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x7EB3;&#x671F;&#x65E5;&#x5C0F;&#x4E8E;&#x5F53;&#x524D;&#x65E5;&#x671F;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>approveLines<span class="token punctuation">.</span>auditLines<span class="token punctuation">.</span>length <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.subAppTemp.msg.warningNull&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x6682;&#x672A;&#x83B7;&#x5F97;&#x6587;&#x4E66;&#x5BA1;&#x67E5;&#x8DEF;&#x5F84;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">const</span> auditLines <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getFormData</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>defaultAudits<span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>auditList<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveLines<span class="token punctuation">.</span>auditLines <span class="token operator">=</span> auditLines<span class="token punctuation">;</span>
            <span class="token keyword">const</span> data <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">getDefaultFormData</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&apos;submit&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;approve&apos;</span><span class="token punctuation">,</span> data<span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">getFormData</span><span class="token punctuation">(</span><span class="token parameter">defaultIds<span class="token punctuation">,</span> auditList</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x683C;&#x5F0F;&#x5316;&#x6570;&#x636E;&#x683C;&#x5F0F;</span>
            <span class="token keyword">let</span> auditLines <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> key <span class="token keyword">in</span> defaultIds<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>defaultIds<span class="token punctuation">.</span><span class="token function">hasOwnProperty</span><span class="token punctuation">(</span>key<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">const</span> id <span class="token operator">=</span> defaultIds<span class="token punctuation">[</span>key<span class="token punctuation">]</span><span class="token punctuation">;</span>
                    <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> j <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> j <span class="token operator">&lt;</span> auditList<span class="token punctuation">[</span>key<span class="token punctuation">]</span><span class="token punctuation">.</span>length<span class="token punctuation">;</span> j<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">let</span> user <span class="token operator">=</span> auditList<span class="token punctuation">[</span>key<span class="token punctuation">]</span><span class="token punctuation">[</span>j<span class="token punctuation">]</span><span class="token punctuation">;</span>
                        <span class="token keyword">if</span> <span class="token punctuation">(</span>id <span class="token operator">==</span> user<span class="token punctuation">.</span>_id<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                            auditLines<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
                                uid<span class="token operator">:</span> user<span class="token punctuation">.</span>_id<span class="token punctuation">,</span>
                                name<span class="token operator">:</span> user<span class="token punctuation">.</span>name<span class="token punctuation">,</span>
                                resOptType<span class="token operator">:</span> ResOptTypeEnum<span class="token punctuation">.</span>audit<span class="token punctuation">,</span>
                                deptId<span class="token operator">:</span> user<span class="token punctuation">.</span>deptId
                            <span class="token punctuation">}</span><span class="token punctuation">)</span>
                        <span class="token punctuation">}</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">return</span> auditLines<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<p><img src="../../images/files_search.jpg" alt=""></p>
<h5 id="searchtempindexvue">searchTemp/index.vue</h5>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> doc <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fileI18nHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins &#x56FD;&#x9645;&#x5316;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> omit<span class="token punctuation">,</span> verifyDateRange <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x81EA;&#x5B9A;&#x4E49;&#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> _ <span class="token keyword">from</span> <span class="token string">&apos;lodash&apos;</span><span class="token punctuation">;</span> <span class="token comment">// lodash &#x5DE5;&#x5177;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            forDeptList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x6240;&#x5C5E;&#x90E8;&#x95E8;&#x5217;&#x8868;</span>
            typeList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x522B; &#x5217;&#x8868;</span>
            childTypeList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x578B; &#x5217;&#x8868;</span>
            signList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x7B7E;&#x7EA6;&#x65B9; &#x5217;&#x8868;</span>
            tagList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x6807;&#x7B7E; &#x5217;&#x8868;</span>
            currency<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x8D27;&#x5E01;&#x5355;&#x4F4D; &#x5217;&#x8868;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    props<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7236;&#x7EC4;&#x4EF6; &#x4F20;&#x53C2;</span>
        query<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Object<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        isAllDate<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Boolean<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token operator">:</span> <span class="token boolean">false</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        isOperate<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Boolean<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token operator">:</span> <span class="token boolean">true</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>fileI18nHandler<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    watch<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">// &#x76D1;&#x542C; data &#x5C5E;&#x6027; &#x53D8;&#x5316;</span>
        <span class="token function">contractType</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initSelectList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">docState</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&quot;./conf&quot;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token string">&apos;docState&apos;</span> <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;lang.type&apos;</span><span class="token punctuation">)</span><span class="token punctuation">]</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">expireList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token string">&quot;./conf&quot;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token string">&apos;expireStatus&apos;</span> <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;lang.type&apos;</span><span class="token punctuation">)</span><span class="token punctuation">]</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">searchChange</span><span class="token punctuation">(</span><span class="token parameter">key<span class="token punctuation">,</span> e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x8BE5;&#x51FD;&#x6570;&#x4E3B;&#x8981;&#x7528;&#x6765; &#x5224;&#x65AD; &#x67E5;&#x8BE2;&#x6761;&#x4EF6;&#x662F;&#x5426;&#x4E3A;&#x7A7A;&#xFF0C; &#x79FB;&#x9664; key/value</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>e<span class="token punctuation">)</span> <span class="token keyword">delete</span> <span class="token keyword">this</span><span class="token punctuation">.</span>query<span class="token punctuation">[</span>key<span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">search</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x70B9;&#x51FB;&#x67E5;&#x8BE2;</span>
            <span class="token keyword">let</span> verify <span class="token operator">=</span> <span class="token function">verifyDateRange</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>query<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>verify<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.search.warning&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x8BF7;&#x9009;&#x62E9;&#x6B63;&#x786E;&#x7684;&#x671F;&#x95F4;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&quot;search&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">contractTypeHandler</span><span class="token punctuation">(</span><span class="token parameter">e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x522B; &#x9009;&#x62E9;&#x65F6;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>query <span class="token operator">=</span> <span class="token function">omit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>query<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;type&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;category&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">let</span> obj <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> id <span class="token keyword">in</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>id <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span> <span class="token operator">===</span> e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    obj<span class="token punctuation">[</span>id<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>id<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> obj<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>query<span class="token punctuation">.</span>type <span class="token operator">=</span> Object<span class="token punctuation">.</span><span class="token function">keys</span><span class="token punctuation">(</span>obj<span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">childContractTypeHandler</span><span class="token punctuation">(</span><span class="token parameter">e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6587;&#x6863;&#x7C7B;&#x578B; &#x9009;&#x62E9;&#x65F6;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>e<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>typeList <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">delete</span> <span class="token keyword">this</span><span class="token punctuation">.</span>query<span class="token punctuation">.</span>type<span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">let</span> obj <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> id <span class="token keyword">in</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>id <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span> <span class="token operator">===</span> Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    obj<span class="token punctuation">[</span>id<span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">[</span>id<span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> obj<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>query<span class="token punctuation">.</span>category <span class="token operator">=</span> Math<span class="token punctuation">.</span><span class="token function">floor</span><span class="token punctuation">(</span>e <span class="token operator">/</span> <span class="token number">10</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initSelectList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x4E0B;&#x62C9;&#x9009;&#x62E9;&#x5668; &#x6570;&#x636E;&#x5217;&#x8868;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>typeList <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>childTypeList <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>childContractType<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>tagList <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initTags</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>currency <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>currencyUnit<span class="token punctuation">;</span>
            <span class="token comment">//&#x6240;&#x5C5E;&#x90E8;&#x95E8;&#x5217;&#x8868;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>forDeptList <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initDeptList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x83B7;&#x53D6; &#x7B7E;&#x7EA6;&#x65B9;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>signList <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initSign</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initTags</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x83B7;&#x53D6; &#x5B58;&#x6863;&#x6807;&#x7B7E;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_tags</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">return</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initSign</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x83B7;&#x53D6; &#x7B7E;&#x7EA6;&#x65B9;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_signatory</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">return</span> data<span class="token punctuation">.</span>data<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token punctuation">{</span> name<span class="token operator">:</span> item<span class="token punctuation">.</span>_id <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initDeptList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x521D;&#x59CB;&#x5316;&#x90E8;&#x95E8;&#x5217;&#x8868;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_queryDept</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">return</span> data<span class="token punctuation">.</span>data<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token punctuation">{</span>
                    value<span class="token operator">:</span> item<span class="token punctuation">.</span>_id<span class="token punctuation">,</span>
                    label<span class="token operator">:</span> item<span class="token punctuation">.</span>name
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50;&#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initSelectList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="lendtempindexvue">lendTemp/index.vue</h5>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;vuex&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> 
    ReqOptType <span class="token keyword">as</span> ReqOptTypeEnum<span class="token punctuation">,</span> 
    RecordType <span class="token keyword">as</span> RecordTypeEnum<span class="token punctuation">,</span>
    ResOptType <span class="token keyword">as</span> ResOptTypeEnum
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> doc <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> uploadHandler<span class="token punctuation">,</span> fileI18nHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins/&apos;</span><span class="token punctuation">;</span><span class="token comment">// mixins</span>
<span class="token keyword">import</span> approveTemp <span class="token keyword">from</span> <span class="token string">&apos;./approve&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x501F;&#x5165;/&#x501F;&#x51FA;&#x6A21;&#x677F; &#x7EC4;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> LocalStorageEnum <span class="token keyword">as</span> LSEnum<span class="token punctuation">,</span> RouterToEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> _ <span class="token keyword">from</span> <span class="token string">&apos;lodash&apos;</span><span class="token punctuation">;</span> <span class="token comment">// lodash &#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/filters&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;</span>
<span class="token keyword">import</span> moment <span class="token keyword">from</span> <span class="token string">&quot;moment&quot;</span><span class="token punctuation">;</span> <span class="token comment">// moment.js &#x65E5;&#x671F;&#x5DE5;&#x5177;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
        approveTemp
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    filters<span class="token operator">:</span> <span class="token punctuation">{</span> fmtDate <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8FC7;&#x6EE4;&#x5668;&#x6CE8;&#x518C;</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>uploadHandler<span class="token punctuation">,</span> fileI18nHandler<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            RouterToEnum<span class="token punctuation">,</span> <span class="token comment">// &#x679A;&#x4E3E;&#x6587;&#x4EF6; &#x58F0;&#x660E; &#x7528;&#x4E8E; Dom&#x4F7F;&#x7528;</span>
            headers<span class="token operator">:</span> <span class="token punctuation">{</span> token<span class="token operator">:</span> localStorage<span class="token punctuation">.</span><span class="token function">getItem</span><span class="token punctuation">(</span>LSEnum<span class="token punctuation">.</span>token<span class="token punctuation">)</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x4E0A;&#x4F20;&#x6587;&#x4EF6; &#x5934;&#x90E8;</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x5355;&#x6570;&#x636E;</span>
            checkBoxActive<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span>
            approveLines<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5BA1;&#x67E5;&#x8DEF;&#x5F84;</span>
            approveObj<span class="token operator">:</span> <span class="token punctuation">{</span> reqOptType<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> documentCategory<span class="token operator">:</span> <span class="token keyword">null</span><span class="token punctuation">,</span> multiple<span class="token operator">:</span> <span class="token boolean">false</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">//&#x5BA1;&#x6279;&#x53C2;&#x6570;</span>
            approveUser<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x5C65;&#x5386;</span>
            lendData<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span><span class="token comment">//&#x51FA;&#x501F;&#x6A21;&#x677F;&#x9700;&#x8981;&#x7684;&#x6570;&#x636E;</span>
            tagList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span><span class="token comment">//&#x5B58;&#x6863;&#x6807;&#x7B7E;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span>
            <span class="token string">&apos;queryParams&apos;</span><span class="token punctuation">,</span>
            <span class="token string">&apos;user&apos;</span>
        <span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token function">btnName</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6309;&#x94AE;&#x540D;&#x79F0;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> resSave<span class="token punctuation">,</span> final<span class="token punctuation">,</span> reqSave<span class="token punctuation">,</span> lend <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
            <span class="token keyword">const</span> btnName <span class="token operator">=</span> <span class="token punctuation">{</span>
                <span class="token punctuation">[</span>resSave<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.btn.save&apos;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
                <span class="token punctuation">[</span>lend<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.btn.lend&apos;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
                <span class="token punctuation">[</span>reqSave<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.btn.approveSave&apos;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
                <span class="token punctuation">[</span>final<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.btn.final&apos;</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">return</span> btnName<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to<span class="token punctuation">]</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">title</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5C0F;&#x6807;&#x9898;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> resSave<span class="token punctuation">,</span> reqSave <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> resSave <span class="token operator">||</span> reqSave<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.title.save&apos;</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.title.lend&apos;</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">uploadData</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x4E0A;&#x4F20; data &#x6570;&#x636E;</span>
            <span class="token keyword">return</span> <span class="token punctuation">{</span> storage<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> documentCategory<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token punctuation">}</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">optType</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x7C7B;&#x578B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> lend<span class="token punctuation">,</span> back <span class="token punctuation">}</span> <span class="token operator">=</span> ResOptTypeEnum<span class="token punctuation">;</span>
            <span class="token keyword">return</span> <span class="token punctuation">{</span> <span class="token punctuation">[</span>lend<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.optType&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token punctuation">[</span>back<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.optType&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">back</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8FD4;&#x56DE;&#x4E0A;&#x4E00;&#x5C42;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">closeUpload</span><span class="token punctuation">(</span><span class="token parameter">e<span class="token punctuation">,</span> i</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5220;&#x9664;&#x4E0A;&#x4F20;&#x9644;&#x4EF6;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>finalPos<span class="token punctuation">.</span><span class="token function">splice</span><span class="token punctuation">(</span>i<span class="token punctuation">,</span> <span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">downLoad</span><span class="token punctuation">(</span><span class="token parameter">file</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x4E0B;&#x8F7D;</span>
            window<span class="token punctuation">.</span>location<span class="token punctuation">.</span>href <span class="token operator">=</span> <span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">/api/doc/download?storagePath=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>file<span class="token punctuation">.</span>storagePath<span class="token interpolation-punctuation punctuation">}</span></span><span class="token string">&amp;name=</span><span class="token interpolation"><span class="token interpolation-punctuation punctuation">${</span>file<span class="token punctuation">.</span>fileName<span class="token interpolation-punctuation punctuation">}</span></span><span class="token template-punctuation string">`</span></span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">uploadSuccess</span><span class="token punctuation">(</span><span class="token parameter"><span class="token punctuation">{</span> data<span class="token punctuation">,</span> errorCode <span class="token punctuation">}</span><span class="token punctuation">,</span> file<span class="token punctuation">,</span> fileList</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x4E0A;&#x4F20;&#x6210;&#x529F;&#x65F6; &#x56DE;&#x8C03;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> _finalPos <span class="token operator">=</span> <span class="token punctuation">{</span> timestamp<span class="token operator">:</span> <span class="token function">moment</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD HH:mm:ss&quot;</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token operator">...</span>data <span class="token punctuation">}</span><span class="token punctuation">;</span>
                console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>_finalPos<span class="token punctuation">,</span> <span class="token string">&apos;_finalPos&apos;</span><span class="token punctuation">)</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>finalPos<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>_finalPos<span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">validate</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x8868;&#x5355;&#x6821;&#x9A8C;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> final<span class="token punctuation">,</span> reqSave<span class="token punctuation">,</span> lend <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> final<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x63D0;&#x4EA4;&#x6700;&#x7EC8;&#x5B58;&#x6863;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">subFinal</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> reqSave<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x53D1;&#x8D77;&#x8BF7;&#x6C42;&#x5B58;&#x6863;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">subArchive</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> lend<span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x51FA;&#x501F;&#x5F52;&#x8FD8;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>approve<span class="token punctuation">.</span><span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>approve<span class="token punctuation">.</span>isShow <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>form<span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token parameter">valid</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span><span class="token comment">//&#x6700;&#x7EC8;&#x5B58;&#x6863;&#x5904;&#x7406;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>valid<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">subSave</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subLend</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x8868;&#x5355;&#x63D0;&#x4EA4; &#x51FA;&#x501F;/&#x5F52;&#x8FD8;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> form<span class="token punctuation">,</span> selectData <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>approve<span class="token punctuation">;</span>
            <span class="token comment">// let formData = {lentUid: form.lentUid, ...roundDate};</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_approve</span><span class="token punctuation">(</span>_id<span class="token punctuation">,</span> form<span class="token punctuation">.</span>type<span class="token punctuation">,</span> <span class="token punctuation">{</span> lentBody<span class="token operator">:</span> form <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subSave</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x6700;&#x7EC8;&#x5B58;&#x6863;&#x5904;&#x7406;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> archiveDir<span class="token punctuation">,</span> tagId<span class="token punctuation">,</span> archiveEndTime <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> resOptType <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">let</span> formData <span class="token operator">=</span> <span class="token punctuation">{</span> archiveEndTime <span class="token punctuation">}</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>archiveDir<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    formData<span class="token punctuation">.</span>archiveDir <span class="token operator">=</span> archiveDir<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>tagId<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    formData<span class="token punctuation">.</span>tagId <span class="token operator">=</span> tagId
                <span class="token punctuation">}</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_approve</span><span class="token punctuation">(</span>_id<span class="token punctuation">,</span> resOptType<span class="token punctuation">,</span> formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subArchive</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x53D1;&#x8D77;&#x8BF7;&#x6C42;&#x5B58;&#x6863;</span>
            <span class="token keyword">let</span> list<span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> category <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_process</span><span class="token punctuation">(</span><span class="token punctuation">{</span> reqOptType<span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>archive<span class="token punctuation">,</span> documentCategory<span class="token operator">:</span> category <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> archiveLines <span class="token punctuation">}</span> <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                    list <span class="token operator">=</span> archiveLines<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token punctuation">{</span> errorCode<span class="token punctuation">,</span> errorMsg <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
            <span class="token keyword">let</span> archiveList <span class="token operator">=</span> list<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> cache <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token punctuation">}</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>item<span class="token punctuation">.</span>agentUid<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    cache <span class="token operator">=</span> <span class="token punctuation">{</span> resUid<span class="token operator">:</span> item<span class="token punctuation">.</span>agentUid<span class="token punctuation">,</span> resName<span class="token operator">:</span> item<span class="token punctuation">.</span>agentName <span class="token punctuation">}</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    cache <span class="token operator">=</span> <span class="token punctuation">{</span> resUid<span class="token operator">:</span> item<span class="token punctuation">.</span>uid<span class="token punctuation">,</span> resName<span class="token operator">:</span> item<span class="token punctuation">.</span>name <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">return</span> <span class="token punctuation">{</span> <span class="token operator">...</span>cache<span class="token punctuation">,</span> resDeptId<span class="token operator">:</span> item<span class="token punctuation">.</span>deptId<span class="token punctuation">,</span> resOptType<span class="token operator">:</span> item<span class="token punctuation">.</span>resOptType <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span>
            <span class="token keyword">let</span> paths <span class="token operator">=</span> archiveList<span class="token punctuation">;</span>
            <span class="token keyword">let</span> form <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">cloneDeep</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">)</span><span class="token punctuation">;</span>
            form <span class="token operator">=</span> _<span class="token punctuation">.</span><span class="token function">omit</span><span class="token punctuation">(</span>form<span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">&apos;_id&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;__v&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;createTime&apos;</span><span class="token punctuation">,</span> <span class="token string">&apos;uid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> _id<span class="token punctuation">,</span> name<span class="token punctuation">,</span> deptId <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>user<span class="token punctuation">;</span>
            <span class="token keyword">let</span> data <span class="token operator">=</span> <span class="token punctuation">{</span>
                reqUid<span class="token operator">:</span> _id<span class="token punctuation">,</span>
                reqName<span class="token operator">:</span> name<span class="token punctuation">,</span>
                reqDeptId<span class="token operator">:</span> deptId<span class="token punctuation">,</span>
                reqDeptName<span class="token operator">:</span> localStorage<span class="token punctuation">.</span><span class="token function">getItem</span><span class="token punctuation">(</span>LSEnum<span class="token punctuation">.</span>deptName<span class="token punctuation">)</span><span class="token punctuation">,</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">const</span> formData <span class="token operator">=</span> <span class="token punctuation">{</span>
                docId<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>_id<span class="token punctuation">,</span>
                docName<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>name<span class="token punctuation">,</span>
                reqOptType<span class="token operator">:</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> ReqOptTypeEnum<span class="token punctuation">.</span>seal <span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>keep<span class="token punctuation">,</span>
                <span class="token operator">...</span>form<span class="token punctuation">,</span>
                paths<span class="token punctuation">,</span>
                <span class="token operator">...</span>data
            <span class="token punctuation">}</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_ignite</span><span class="token punctuation">(</span>formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">subFinal</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x5355;&#x72EC;&#x63D0;&#x4EA4;&#x6700;&#x7EC8;&#x5B58;&#x6863;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> _id<span class="token operator">:</span> docId<span class="token punctuation">,</span> finalPos<span class="token punctuation">,</span> deptId <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>Array<span class="token punctuation">.</span><span class="token function">isArray</span><span class="token punctuation">(</span>finalPos<span class="token punctuation">)</span> <span class="token operator">||</span> finalPos<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token string">&apos;&#x6587;&#x4EF6;&#x672A;&#x4E0A;&#x4F20;&apos;</span><span class="token punctuation">)</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_final</span><span class="token punctuation">(</span><span class="token punctuation">{</span> docId<span class="token punctuation">,</span> finalPos<span class="token punctuation">,</span> deptId <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.success&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initProcess</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x5BA1;&#x67E5;&#x6570;&#x636E;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> category<span class="token punctuation">,</span> type<span class="token punctuation">,</span> sealTypes <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
            <span class="token comment">//&#x8BBE;&#x7F6E;&#x5BA1;&#x6279;&#x53C2;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>reqOptType <span class="token operator">=</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>contractType<span class="token punctuation">[</span>category <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>isSave <span class="token operator">?</span> ReqOptTypeEnum<span class="token punctuation">.</span>seal <span class="token operator">:</span> ReqOptTypeEnum<span class="token punctuation">.</span>keep<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">.</span>documentCategory <span class="token operator">=</span> category<span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_process</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>approveObj<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">===</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>approveLines <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span><span class="token punctuation">{</span> errorCode<span class="token punctuation">,</span> errorMsg <span class="token punctuation">}</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x8868;&#x5355;&#x6570;&#x636E;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initRecords</span><span class="token punctuation">(</span><span class="token parameter">type</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x67E5;&#x8BE2; &#x5BA1;&#x6838;&#x8BB0;&#x5F55; &#x6216; &#x51FA;&#x501F;&#x8BB0;&#x5F55;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_records</span><span class="token punctuation">(</span>_id<span class="token punctuation">,</span> type<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">return</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>

            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initTags</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x6807;&#x7B7E;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> doc<span class="token punctuation">.</span><span class="token function">doc_tags</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>tagList <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token keyword">async</span> <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">//&#x94A9;&#x5B50;&#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D; &#x89E6;&#x53D1;</span>
        <span class="token comment">//&#x5224;&#x65AD;&#x662F;&#x5426;&#x5237;&#x65B0;&#x9875;&#x9762;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">return</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span>approveUser <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initRecords</span><span class="token punctuation">(</span>RecordTypeEnum<span class="token punctuation">.</span>review<span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x67E5;&#x8BE2;&#x5BA1;&#x6838;&#x8BB0;&#x5F55;</span>
        <span class="token keyword">const</span> <span class="token punctuation">{</span> resSave<span class="token punctuation">,</span> lend <span class="token punctuation">}</span> <span class="token operator">=</span> RouterToEnum<span class="token punctuation">;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> lend<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>lendData <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initRecords</span><span class="token punctuation">(</span>RecordTypeEnum<span class="token punctuation">.</span>lend<span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">//&#x67E5;&#x8BE2;&#x51FA;&#x501F;&#x8BB0;&#x5F55;</span>
        <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initProcess</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> resSave<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>lendData <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initTags</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="lendtempapproveindexvue">lendTemp/approve/index.vue</h5>
<blockquote>
<p>&#x51FA;&#x501F;/&#x5F52;&#x8FD8; &#x6A21;&#x677F;&#x7EC4;&#x4EF6;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> moment <span class="token keyword">from</span> <span class="token string">&apos;moment&apos;</span><span class="token punctuation">;</span> <span class="token comment">// moment.js &#x65E5;&#x671F;&#x5DE5;&#x5177;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> user_by_dept <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api/user&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> cascaderHandler <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/mixins&apos;</span><span class="token punctuation">;</span> <span class="token comment">// mixins</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> ResOptType <span class="token keyword">as</span> ResOptTypeEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            isShow<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x662F;&#x5426;&#x5C55;&#x793A;</span>
            elDisable<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">//&#x5224;&#x65AD;&#x72B6;&#x6001; &#x4E3A;&#x51FA;&#x501F; &#x8FD8;&#x662F; &#x5F52;&#x8FD8;&#xFF0C;&#x5F52;&#x8FD8; &#x4E3A; true</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span> type<span class="token operator">:</span> ResOptTypeEnum<span class="token punctuation">.</span>lend <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x5355;&#x6570;&#x636E;</span>
            userList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x51FA;&#x501F;&#x4EBA; &#x5217;&#x8868;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    mixins<span class="token operator">:</span> <span class="token punctuation">[</span>cascaderHandler<span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// mixins</span>
    props<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7236;&#x7EC4;&#x4EF6; &#x4F20;&#x53C2;</span>
        formData<span class="token operator">:</span> <span class="token punctuation">{</span>
            type<span class="token operator">:</span> Array<span class="token punctuation">,</span>
            <span class="token keyword">default</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">typeList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> lend<span class="token punctuation">,</span> back <span class="token punctuation">}</span> <span class="token operator">=</span> ResOptTypeEnum<span class="token punctuation">;</span>
            <span class="token keyword">return</span> <span class="token punctuation">[</span><span class="token comment">//lend: 6 /**&#x53BB;&#x51FA;&#x501F; */, back: 7 /**&#x53BB;&#x5F52;&#x8FD8; */,</span>
                <span class="token punctuation">{</span>
                    label<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.temp.typeList&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
                    value<span class="token operator">:</span> lend
                <span class="token punctuation">}</span><span class="token punctuation">,</span>
                <span class="token punctuation">{</span>
                    label<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.temp.typeList&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
                    value<span class="token operator">:</span> back
                <span class="token punctuation">}</span>
            <span class="token punctuation">]</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token keyword">async</span> <span class="token function">validate</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8868;&#x5355;&#x6821;&#x9A8C;</span>
            <span class="token comment">//&#x6821;&#x9A8C; &#x65E5;&#x671F;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime_ <span class="token operator">&amp;&amp;</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime_ <span class="token operator">&amp;&amp;</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime_ <span class="token operator">&lt;=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime_<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime_ <span class="token operator">+</span> <span class="token string">&apos; 00:00:00&apos;</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime_ <span class="token operator">+</span> <span class="token string">&apos; 23:59:59&apos;</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.temp.warning&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x8BF7;&#x9009;&#x62E9;&#x6B63;&#x786E;&#x7684;&#x65E5;&#x671F;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>form<span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token keyword">async</span> <span class="token parameter">valid</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>valid<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> today <span class="token operator">=</span> <span class="token function">moment</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>elDisable<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&quot;submit&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime_ <span class="token operator">&lt;</span> today<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                                <span class="token keyword">let</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;files.lend.temp.confirm&apos;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token comment">//&#x51FA;&#x501F;&#x65F6;&#x95F4;&#x5C0F;&#x4E8E;&#x5F53;&#x524D;&#x65E5;&#x671F;&#xFF0C;&#x662F;&#x5426;&#x786E;&#x8BA4;&#xFF1F;</span>
                                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&apos;confirm&apos;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&quot;submit&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                                <span class="token punctuation">}</span>
                            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
                        <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$emit</span><span class="token punctuation">(</span><span class="token string">&quot;submit&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                        <span class="token punctuation">}</span>
                    <span class="token punctuation">}</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">findUserByDeptId</span><span class="token punctuation">(</span><span class="token parameter">deptId</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6839;&#x636E;&#x90E8;&#x95E8;id&#x67E5;&#x8BE2;&#x7528;&#x6237;&#x5217;&#x8868;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token function">user_by_dept</span><span class="token punctuation">(</span>deptId<span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>userList <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316; &#x6570;&#x636E;&#x3002;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> lend<span class="token punctuation">,</span> back <span class="token punctuation">}</span> <span class="token operator">=</span> ResOptTypeEnum<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token punctuation">{</span> type<span class="token operator">:</span> lend <span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>elDisable <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>formData <span class="token operator">&amp;&amp;</span> <span class="token keyword">this</span><span class="token punctuation">.</span>formData<span class="token punctuation">.</span>length <span class="token operator">!=</span> <span class="token number">0</span> <span class="token operator">&amp;&amp;</span> <span class="token keyword">this</span><span class="token punctuation">.</span>formData<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>formData<span class="token punctuation">.</span>length <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span>resOptType <span class="token operator">==</span> lend<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> data <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>formData<span class="token punctuation">[</span><span class="token keyword">this</span><span class="token punctuation">.</span>formData<span class="token punctuation">.</span>length <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>elDisable <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>startTime_ <span class="token operator">=</span> <span class="token function">moment</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>startTime<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>endTime_ <span class="token operator">=</span> <span class="token function">moment</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>endTime<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">format</span><span class="token punctuation">(</span><span class="token string">&quot;YYYY-MM-DD&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>type <span class="token operator">=</span> back<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>lentUid <span class="token operator">=</span> data<span class="token punctuation">.</span>reqUid<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>name <span class="token operator">=</span> data<span class="token punctuation">.</span>reqName<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="faildoc.html" class="navigation navigation-prev " aria-label="Previous page: faildoc">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="init.html" class="navigation navigation-next " aria-label="Next page: init">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"files","level":"2.10.6","depth":2,"next":{"title":"init","level":"2.10.7","depth":2,"path":"src/views/init.md","ref":"src/views/init.md","articles":[]},"previous":{"title":"faildoc","level":"2.10.5","depth":2,"path":"src/views/faildoc.md","ref":"src/views/faildoc.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"合同管理","language":"zh-hans","gitbook":"3.2.3","description":"合同管理Web端"},"file":{"path":"src/views/files.md","mtime":"2020-03-03T05:34:48.582Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-07T04:19:36.591Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

